SetUserAgentOverrideRequest

data class SetUserAgentOverrideRequest(userAgent: String, acceptLanguage: String?, platform: String?, userAgentMetadata: UserAgentMetadata?)

Represents request frame that can be used with Emulation#setUserAgentOverride operation call.

Allows overriding user agent with the given string.

See also

Constructors

SetUserAgentOverrideRequest
Link copied to clipboard
fun SetUserAgentOverrideRequest(userAgent: String, acceptLanguage: String? = null, platform: String? = null, userAgentMetadata: UserAgentMetadata? = null)

Properties

acceptLanguage
Link copied to clipboard
val acceptLanguage: String? = null
Browser langugage to emulate.
platform
Link copied to clipboard
val platform: String? = null
The platform navigator.platform should return.
userAgent
Link copied to clipboard
val userAgent: String
User agent to use.
userAgentMetadata
Link copied to clipboard
val userAgentMetadata: UserAgentMetadata? = null
To be sent in Sec-CH-UA-* headers and returned in navigator.

Sources

jvm source
Link copied to clipboard